package net.hn.hnms.biz.project.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "contract_payment", schema = "xmgl", catalog = "huaneng-manage")
public class ContractPayment  extends BaseModel implements Serializable {
    @ApiModelProperty(value = "id")
    @TableField(value = "contract_payment_id", fill = FieldFill.INSERT)
    @TableId(type = IdType.ASSIGN_UUID)
    private String contractPaymentId;

    @ApiModelProperty(value = "结算编号")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String paymentCode;

    @ApiModelProperty(value = "结算金额")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal paymentAmount;

    @ApiModelProperty(value = "结算标题")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String paymentTitle;

    @ApiModelProperty(value = "结算人")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String paymentPerson;

    @ApiModelProperty(value = "结算单位")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String paymentCompany;

    @ApiModelProperty(value = "结算方式")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String paymentType;

    @ApiModelProperty(value = "结算币种")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String paymentCurrency;

    @ApiModelProperty(value = "结算时间")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    private Date paymentDate;

    @ApiModelProperty(value = "备注")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String remark;

    @ApiModelProperty(value = "结算状态（0未结算 1已结算）")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String paymentState;

    @ApiModelProperty(value = "合同ID")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String contractId;

    @ApiModelProperty(value = "结算类型 0收款 1付款")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String type;


}
